home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4995 < prev    next >
Encoding:
Text File  |  1996-08-06  |  841 b   |  31 lines

  1. Path: red.seas.upenn.edu!akm
  2. From: akm@red.seas.upenn.edu (The Killer)
  3. Newsgroups: comp.lang.c++
  4. Subject: Question:  Regards constructors, ptrs. and classes
  5. Date: 2 Feb 1996 00:49:19 GMT
  6. Organization: University of Pennsylvania
  7. Message-ID: <4ern2f$epl@netnews.upenn.edu>
  8. NNTP-Posting-Host: red.seas.upenn.edu
  9. X-Newsreader: TIN [version 1.2 PL2-upenn1.3]
  10.  
  11. Please help!  I am in an S.O.S. situation.
  12. Here is the problem:
  13.     Base class...
  14.     class MORTGAGE{
  15.        MORTGAGE(.....blah, MORTGAGE*);
  16.     }
  17.     Derived class:
  18.         class TRAD_MORTGAGE{
  19.        TRAD_MORTGAGE(....blah, TRAD_MORTGAGE*)
  20.      }
  21.  
  22. Can I do this:
  23.     TRAD_MORTGAGE::TRAD_MORTGAGE(...blah, TRAD_MORTGAGE 
  24. *ptr):MORTGAGE(...blah, ptr){
  25. }
  26.  
  27. The goal is to create a linked list of TRADITIONAL MORTGAGES, am I doing 
  28. something wrong?
  29. PLEASE e-mail me, akm@eniac.seas.upenn.edu
  30. THANKS so much
  31.